import java.util.HashMap;

public class Test {
    public static void main(String[] args) {
        HashMap map = new HashMap();
        char[] ch = new char[]{'a','b','c'};
        String s1 = new String(ch);
        s1.intern();
        String s2 = "abc";
        System.out.println(s1==s2);//true
    }
    public static void main01(String[] args) {
/*        String str1 = "a";
        String str2 = "a";
        String str3 = new String("a");
        String str4  = new String("a");
        System.out.println(str1==str2);//true
        System.out.println(str1==str3);
        System.out.println(str3==str4);*/
/*        String str1 = new String("abc");
        String str2 = new String("abc");
        String str3 = new String("abc");
        String str4 = "abc";
        System.out.println(str1==str2);*/
//        System.out.println(str1.equals(str4));
/*        String str1 = "abc";
        String str2 = "abc";
        String str3 = new String("abc");
        String str4 = new String("abc");*/
    }
}
